#!/bin/bash

mkdir -p ./volume/baota/{website,mysql,vhost}

echo '开放端口'
firewall-cmd --zone=public --add-port=38888/tcp --permanent
firewall-cmd --zone=public --add-port=30080/tcp --permanent
firewall-cmd --zone=public --add-port=30443/tcp --permanent
firewall-cmd --zone=public --add-port=33306/tcp --permanent
firewall-cmd --zone=public --add-port=30021/tcp --permanent
firewall-cmd --zone=public --add-port=30022/tcp --permanent
firewall-cmd --zone=public --add-port=30888/tcp --permanent

firewall-cmd --reload

echo '启动容器'
docker-compose up -d

echo '查看容器'
docker-compose ps
